import java.util.Random;

/**
 * 类的功能层次结构
 */
public class RandomDisplay extends CountDisplay{

    public RandomDisplay(DisplayImpl displayImpl){
        super(displayImpl);
    }

    public void randomDisplay(int times){
        multiPrint(new Random().nextInt(times));
    }
}
